﻿using System;
using System.Drawing;

namespace NapazLevelMaker
{
    public class Texture
    {
        public String Path { get; set; }
        public String Name { get; set; }
        public Point Position { get; set; }
        public int ZIndex { get; set; }
        public Image Image { get; set; }
        public int Id { get; set; }

        private static int UniqueIdCounter = 0;
        

        public Texture()
        {
            UniqueIdCounter++;
            this.Id = UniqueIdCounter;
        }

        public override string ToString()
        {
            return Name + "\t\t" + Position.ToString();
        }

        public override bool Equals(object obj)
        {
            Texture other = obj as Texture;

            return (other==null) ? false : Id == other.Id;
        }
    }
}
